#define _CRT_SECURE_NO_WARNINGS 1
#include"SqLnode.h"
int main()
{
	SNode* ps = NULL;
	SqNodePushBack(&ps, 1);
	SqNodePushBack(&ps, 2);
	SqNodePushBack(&ps, 3);
	SqNodePushBack(&ps, 4);
	SqNodePushBack(&ps, 5);
	SqNodePushFront(&ps, 6);
	SqNodePushFront(&ps, 7);
	SqNodePushFront(&ps, 8);
	SqNodePrint(ps);
	SqNodePopFront(&ps);
	SqNodePopFront(&ps);
	SqNodePopFront(&ps);
	SqNodePopFront(&ps);
	SqNodePrint(ps);
	SqNodePopBack(&ps);
	SqNodePopBack(&ps);
	SqNodePrint(ps);
	SNode* pos = SqNodeFind(ps, 3);
	if (pos)
	{
		SqNodeInsert(&ps, pos, 30);
	}
	pos = SqNodeFind(ps, 30);
	if (pos)
	{
		SqNodeInsert(&ps, pos, 40);
	}
	pos = SqNodeFind(ps, 2);
	if (pos)
	{
		SqNodeInsert(&ps, pos, 50);
	}
	SqNodePrint(ps);
	pos = SqNodeFind(ps, 50);
	if (pos)
	{
		SqNodeErase(&ps, pos);
	}
	pos = SqNodeFind(ps, 2);
	if (pos)
	{
		SqNodeErase(&ps, pos);
	}
	SqNodePrint(ps);

	return 0;
}